//
//  MyCell.m
//  KuWoCan
//
//  Created by hwd on 17/3/3.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = 0;
    }
    return self;
    
}
-(void)loadCellWith:(NSDictionary *)dataDic
{
    for (UIView *view in self.contentView.subviews) {
        [view removeFromSuperview];
    }
    
    CanImageView *headerImageV = [[CanImageView alloc]initWithFrame:CGRectMake(15*screenW_6, 15*screenW_6, 50*screenW_6, 50*screenW_6) backGroundImageV:@"kuwo_logo"];
    [self.contentView addSubview:headerImageV];
    
    CanLab *ZhiWLab = [[CanLab alloc]initWithFrame:CGRectMake(CGRectGetMaxX(headerImageV.frame)+10*screenW_6, 20*screenW_6,55*screenW_6, 20*screenW_6) textAligment:0 font:17*screenW_6 textColor:@"ADAFAF" text:@"职位："];
    [self.contentView addSubview:ZhiWLab];
    
    CanLab *fuZQYLab = [[CanLab alloc]initWithFrame:CGRectMake(CGRectGetMaxX(headerImageV.frame)+10*screenW_6,45*screenW_6,80*screenW_6, 20*screenW_6) textAligment:0 font:15*screenW_6 textColor:@"ADAFAF" text:@"负责区域："];
    [self.contentView addSubview:fuZQYLab];
    
    _ZhiWLab2 = [[CanLab alloc]initWithFrame:CGRectMake(CGRectGetMaxX(ZhiWLab.frame),20*screenW_6,SCREENW-150*screenW_6, 20*screenW_6) textAligment:0 font:17*screenW_6 textColor:@"000000" text:@"经销商"];
    [self.contentView addSubview:_ZhiWLab2];
    
    _fuZQYLab2 = [[CanLab alloc]initWithFrame:CGRectMake(CGRectGetMaxX(fuZQYLab.frame),45*screenW_6,SCREENW-180*screenW_6, 20*screenW_6) textAligment:0 font:15*screenW_6 textColor:@"000000" text:@"北大仓"];
    [self.contentView addSubview:_fuZQYLab2];
    
}

-(void)loadCell2
{
    for (UIView *view in self.contentView.subviews) {
        [view removeFromSuperview];
    }

    UIImageView *headerImageV = [[UIImageView alloc]initWithFrame:CGRectMake(20*screenW_6, 10*screenW_6,25*screenW_6,25*screenW_6)];
    headerImageV.userInteractionEnabled = YES;
    [self.contentView addSubview:headerImageV];
    
    _titleLab = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(headerImageV.frame)+10*screenW_6, 10*screenW_6, SCREENW-100*screenW_6, 25*screenW_6)];
    _titleLab.font = [UIFont systemFontOfSize:17*screenW_6];
    _titleLab.userInteractionEnabled = YES;
    [self.contentView addSubview:_titleLab];
    
    [self.contentView  addSubview:[ToolViewViewController addCellLineLab:CGRectMake(20*screenW_6, 44*screenW_6, SCREENW-20*screenW_6, 1*screenW_6)]];
    
}
@end
